package com.example.yjh.zyfypt_314yjh.service;

import com.example.yjh.zyfypt_314yjh.bean.LoginBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Path;


/**
 * Created by YJH on 2017/5/2.
 */

public interface UserService {
    @GET("api.php/login/username/{username}/password/{password}")
    Call<String> login(@Path("username") String username, @Path("password") String password);
    @GET("api.php/reg/username/{username}/password/{password}/tel/{tel}")
    Call<LoginBean> reg(@Path("username") String username, @Path("password") String password, @Path("tel") String tel);
    @GET("api.php/logout")
    Call<String> logout(@Header("SessionID") String SessionID);


}
